package org.coone.veteran.basic.contains;

public class HashCodeObject {

	private String name;
	
	private int age;
	
	private int sex;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}
	
	@Override
	public int hashCode() {
		int hashcode = name.hashCode() + age + sex;
		System.out.println("hashcode -> " + hashcode);
		return hashcode;
	}
}
